package net.xiangcaowuyu.mybatsmultidatasource.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import net.xiangcaowuyu.mybatsmultidatasource.dao.master.TestMapper;
import net.xiangcaowuyu.mybatsmultidatasource.domain.Test;
import net.xiangcaowuyu.mybatsmultidatasource.service.ITestService;

import java.util.List;

@Service
public class TestServiceImpl implements ITestService {

    @Resource
    private TestMapper testMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return testMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Test record) {
        return testMapper.insert(record);
    }

    @Override
    public int insertSelective(Test record) {
        return testMapper.insertSelective(record);
    }

    @Override
    public Test selectByPrimaryKey(Long id) {
        return testMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Test record) {
        return testMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Test record) {
        return testMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Test> selectAll() {
        return testMapper.selectAll();
    }

}
